﻿/*------------------------------------------------
// File Description: UserRole DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-02-04 17:08:45
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    [Table(nameof(UserRole))]
    public class UserRole : BaseEntity
    {

        #region Public Property

        ///<Summary>
        /// 用户ID
        ///</Summary>
        public int UserId { get; set; }

        ///<Summary>
        /// 部门ID
        ///</Summary>
        public int DepartmentId { get; set; }

        ///<Summary>
        /// 角色ID
        ///</Summary>
        public int RoleId { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 用户角色表
        /// </summary>
        public virtual DbSet<UserRole> UserRoles { get; set; }
    }
}